package sanrenxing.right.entity;

import java.util.List;

/**
 * 加载树的实体类
 */
public class RoleTreeEntity {
    //定义一个树id
    private String  id;
    //定义一个树名称
    private String title;
    //定义一个复选框状态变量
    private boolean checked;
    //定义一个保存子数结合
    private List<RoleTreeEntity> children=null;

    /**
     * 无参构造
     */
    public RoleTreeEntity(){}

    /**
     * 带参构造
     * @param id
     * @param title
     * @param children
     */
    public RoleTreeEntity(String id, String title, List<RoleTreeEntity> children) {
        this.id = id;
        this.title=title;
        this.children = children;
    }

    //getter和setter方法
    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<RoleTreeEntity> getChildren() {
        return children;
    }

    public void setChildren(List<RoleTreeEntity> children) {
        this.children = children;
    }
}
